//
//  File.swift
//  MM2
//
//  Created by 李成明 on 2022/1/2.
//

import Foundation

extension Array {
    subscript (safe index: Int) -> Element? {
        return (0 ..< count).contains(index) ? self[index] : nil
    }
}
